import java.io.*;
public class myBox {

	private int width; 
	private int height;
	
	public void setWidth(int w)
	{
		width = w;
	}
	
	public void setHeight(int h)
	{
		height = h;
	}
	
	public static void main(String[] args)
	{
		myBox mybox = new myBox();
		mybox.setWidth(50);
		mybox.setHeight(20);
		
		try
		{
			FileOutputStream fs = new FileOutputStream("foo.ser");
			ObjectOutputStream os = new ObjectOutputStream(fs);
			
			os.writeObject(mybox);
			os.close();
		}
		catch(Exception ex)
		{
			
		}
	}
}
